
# ARCH defines
ARCH=armv7_m
ARCH_FAM=arm
ARCH_MCU=jacinto

#
# CFG (y/n) macros
# 

#CFG=ARM ARMV7E_M ARM_CM4 THUMB 
CFG=ARM ARMV7_M ARM_CM3 THUMB 
CFG+=JACINTO JAC6
# Add our board  
CFG+=BRD_JAC6_VAYU_EVM
CFG+=MCU_MMU
CFG+=TIMER
CFG+=TIMER_SCTM

def-y += L3_OFFSET=0x20000000

# What buildable modules does this board have, 
# default or private


# MCAL
MOD_AVAIL+= CAN DIO MCU PORT FLS GPT ETH PWM SPI LIN ADC I2C
# System + Communication + Diagnostic
MOD_AVAIL+=XCP CANIF CANTP J1939TP COM DCM DEM DET ECUM_FLEXIBLE ECUM_FIXED IOHWAB KERNEL PDUR IPDUM WDGM RTE BSWM WDGIF
MOD_AVAIL+=COMM NM CANNM CANSM ETHSM UDPNM
# Additional
MOD_AVAIL+=RAMLOG TCF LWIP TCPIP SOAD DOIP SLEEP RTE RAMTST
# CRC
MOD_AVAIL+=CRC CPL CAL
# Required modules
ifndef NOKERNEL
MOD_USE += MCU KERNEL
endif

# Defines
def-y += SRAM_SIZE=0x20000
ifndef NOKERNEL
def-y += L_BOOT_RESERVED_SPACE=0x20000
endif

# Default cross compiler
DEFAULT_CROSS_COMPILE = /opt/arm-none-eabi/bin/arm-none-eabi-

